LassoScript Utility
Basics Browse Detail

[String->FoldCase]

Tag Link [String->FoldCase] Category String
Type Member Source Available No
Support Preferred Version 7.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

[String->FoldCase] modifies the base string in-place by converting all characters in the string appropriately for a case-insensitive comparison.

This tag performs the same operation that Lasso performs internally before comparing two strings.

Syntax

[Variable: 'myString' = 'String Value']
[$myString->(FoldCase)]
[Variable: 'myString']

<?LassoScript
Variable: 'myString' = 'String Value';
$myString->(FoldCase)]
Output: $myString;
?>

Parameters

No Parameters Required.

Examples

To change the case of a string for a comparison:

Use the [String->FoldCase] tag. The following example outputs a sample string with its case folded for a comparison.

[Variable: 'myString' = 'A quick brown fox']
[$myString->FoldCase]
[Output: $myString]

a quick brown fox

Related Tags

Category Tags